package com.zy.web.demo.duoxiancheng;

import com.sun.beans.decoder.ValueObject;

import java.util.Date;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/7/28 14:35
 */
public class Test {


        private static ExecutorService executor = Executors.newSingleThreadExecutor();

        public static Future<Integer> calculate(Integer input) {
            return executor.submit(() -> {
                Thread.sleep(1000);
                return input * input;
            });
        }

    public static void main(String[] args) throws ExecutionException, InterruptedException {
            String zy = "骆入平; 刘义铭; 袁满; 吴军; 熊保祥; 范伟; 王茄傧; 肖进; 梁桂松; 张剑波; 柏兴亮; 张升东; 陈怡; 李智翔; 谢俊林; 张珊; 顾团结; 周勇; 符凯 ; 董博; 邱程; 刘真伟; 张镫元; 徐龙; 江海祥; 周湖燕; 张文聪; 张开毅; 何爽; 张禹; 何军杰; 张元元  抄送: 张禹; 张星";
             System.out.println(zy.split(";"));
            //        System.out.println(Test.calculate(12).get());
    }
}
